package com.caiyigo.test.arithmetic.simplefactory;
/**
 * 打折
 * @author Administrator
 *
 */
public class CashRebate extends CashSuper {
	private double moneyRebate = 1d;

	public CashRebate(String moneyRebate) {
		// TODO 自动生成的构造函数存根
		this.moneyRebate = Double.valueOf(moneyRebate);
	}

	@Override
	public double acceptCash(double money) {
		// TODO 自动生成的方法存根
		return money * moneyRebate;
	}

}
